<html>
<head>
<title>array test - jQuery</title>
<script type="text/javascript" src="../jquery.js"> </script>
<script type="text/javascript">
function cl( e){
	console.log(e);
}
function clj( e){
	console.log(JSON.stringify(e));
}
function json( e){
	return JSON.stringify(e);
}

function obj(new_id){
	this.id = new_id;
	this.data = Math.random();
}

function test(){


	var arr = new Array();
	for( var i=1000; i>0;--i)
		arr.push( (i%900).toString());
		
	var arrObj = new Array();
	for( var i=1000; i>0;--i)
		arrObj.push( new obj((i%50).toString()));
		
	console.profile();
	for( var i = 20; i>0; --i){
		var arr1 = jQuery.unique(arr);
	}
	//var arr2 = jQuery.unique(arrObj);

	console.profileEnd();

	arr1 = arr1.sort();
	//arr2 = arr2.sort();
	cl(arr1.length);
	//cl(arr2);

}
</script>
</head>
<body>
<a href="javascript:test()">RUN TEST</a>
</body>
</html>
